﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="ReportUT520.aspx.vb" Inherits="RWN.ReportUT520" UICulture="th-TH" Culture="th-TH" %>

<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>

<%@ Register src="ucCalendar.ascx" tagname="ucCalendar" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript">

	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
		รายงานเกี่ยวกับการ Login</div>
	<div>
		<hr />
	</div>
	<div>
		<table>
			<tr>
				<td>
					ตั้งแต่วันที่ Login:
				</td>
				<td>
					<uc2:ucCalendar ID="fromDate" runat="server" ValidationGroup="valid" />
				</td>
				<td>
					ถึงวันที่ Login:
				</td>
				<td>
					<uc2:ucCalendar ID="toDate" runat="server" ValidationGroup="valid" />
				</td>
			</tr>
			<tr>
				<td>
					หมายเลขนักธุรกิจ:
				</td>
				<td>
					<uc1:ucPopupOfficer ID="ucPopupOfficer1" runat="server" />
				</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
			</tr>
			<tr>
				<td colspan="4">
					<asp:Button ID="btnSearch" runat="server" Text="ค้นหา" 
						ValidationGroup="valid" />
					&nbsp;<asp:Button ID="btnReset" runat="server" Text="ตั้งค่าใหม่" />
					&nbsp;<asp:Button ID="btnExcel" runat="server" Text="Excel File" />
				</td>
			</tr>
		</table>
	</div>
	<div>
			<asp:GridView ID="gvList" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" PageSize="20" Width="100%">
				<AlternatingRowStyle BackColor="White" />
			<Columns>
				<asp:TemplateField HeaderText="ลำดับ">
					<ItemTemplate>
						<asp:Label ID="Label1" runat="server" Text="<%# Container.DataItemIndex+1 %>"></asp:Label>
					</ItemTemplate>
				    <HeaderStyle Width="10%" />
                    <ItemStyle HorizontalAlign="Center" />
				</asp:TemplateField>
				<asp:BoundField DataField="LOGIN_DATE" HeaderText="วันที่ Login" 
					DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" >
				<HeaderStyle Width="20%" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
				<asp:BoundField DataField="USER_ID" HeaderText="รหัสนักธุรกิจ" >
				<HeaderStyle Width="20%" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
				<asp:BoundField DataField="OFFICER_FULL_NAME" 
                    HeaderText="ชื่อ-นามสกุลนักธุรกิจ" >
			    <HeaderStyle Width="35%" />
                </asp:BoundField>
			</Columns>
		    <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		    <RowStyle Height="20px" />
		</asp:GridView>
	</div>

	<!-- ไว้เป็น Template สำหรับออก excel -->
	</asp:Content>
